<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2019/3/30
  Time: 16:49
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
1-100素数之和
<%
int num=2;
    for (int i = 2; i < 101; i++) {
        for (int j = 2; j < i; j++) {
            if (i%j==0)
                break;
            else if (j==(i-1))
                num=num+i;
        }
    }
    out.print(num);
%>
</body>
</html>
